# opencv
find_package(OpenCV)

# CUDA
include(${CMAKE_CURRENT_LIST_DIR}/../../cmake/cuda.cmake)

# CUDNN
#include(${CMAKE_CURRENT_LIST_DIR}/../../cmake/cudnn.cmake)

# Caffe
include(${CMAKE_CURRENT_LIST_DIR}/../../cmake/mini-caffe.cmake)

# openblas
#include(${CMAKE_CURRENT_LIST_DIR}/../../cmake/openblas.cmake)


file(GLOB srcs ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp)
include_directories(${CMAKE_CURRENT_LIST_DIR}/include)

add_library(face-identification STATIC ${srcs})
target_link_libraries(face-identification ${OpenCV_LIBS} cudart)
target_link_libraries(face-identification debug caffed optimized caffe)

add_executable(face-id-test ${CMAKE_CURRENT_LIST_DIR}/main.cpp)
target_link_libraries(face-id-test face-identification ${OpenCV_LIBS} cudart)
target_link_libraries(face-id-test debug caffed optimized caffe)

